<?php
//区块
class blockMod extends commonMod
{
	public function __construct()
	{
		parent::__construct();
	}
//区块内容显示
	public function out($id)
	{
		$condition['id']=$id;
		$info=$this->model->field('content')->table('block')->where($condition)->find();
		$info['content']=html_out($info['content']);
		$info['content']=str_replace("__ROOT__",__ROOT__,$info['content']);
		$info['content']=str_replace("__PUBLIC__",__PUBLIC__,$info['content']);
		$info['content']=str_replace("__APP__",__APP__,$info['content']);
		$info['content']=str_replace("__URL__",__URL__,$info['content']);
		echo $info['content'];	
	}

}
?>